Skip to content

Fix ORTModel MRO for whisper#919

Merged
fxmarty merged 6 commits intohuggingface:mainfrom
fxmarty:support-whisper-refactor-transformers
Mar 24, 2023
Merged

Fix ORTModel MRO for whisper#919
fxmarty merged 6 commits intohuggingface:mainfrom
fxmarty:support-whisper-refactor-transformers

Conversation

@fxmarty
Copy link
Contributor

@fxmarty fxmarty commented Mar 24, 2023

As per title, fixes #905, #906

This bug is introduced by huggingface/transformers#21252 that moves generate() implementation in WhisperForConditionalGeneration, hence breaking the inheritance order in transformers.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 24, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@michaelbenayoun michaelbenayoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

fxmarty and others added 3 commits March 24, 2023 18:14
Co-authored-by: Michael Benayoun <mickbenayoun@gmail.com>
Co-authored-by: Michael Benayoun <mickbenayoun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Whisper pipeline raises error when using return_timestamps (ValueError: The following model_kwargs are not used by the model: ['return_timestamps'])

3 participants